package cn.yh.register.hosp.repository;

import cn.yh.register.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface DepartmentRepository extends MongoRepository<Department,String> {

    //根据医院编号&科室编号查询科室信息
    Department findByHoscodeAndDepcode(String hoscode, String depcode);

    // 根据医院编号查询所有科室
    List<Department> findByHoscode(String hoscode);
}
